package peer;

import java.util.Date;
import java.util.Timer;

import peer.NetworkManager.NetworkManager;
import peer.SearchManager.SearchManager;
import peer.SharingManager.SharingManager;
import peer.gui.PeerGUI;

public class NFPClient {

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		PeerGUI gui = PeerGUI.instance();
		SharingManager sharingManager = SharingManager.instance();
		NetworkManager networkManager = NetworkManager.instance();
		SearchManager searchManager = SearchManager.instance();
		
		
		Timer clientTimer = new Timer();
		clientTimer.schedule(new UpdateSharedFilesTask(sharingManager, gui), new Date(), 60000);

		networkManager.run();
		
		
	}
	
	

}
